/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.uc.dao;

import com.xy.biz.uc.domain.po.TeamPO;
import com.xy.biz.uc.domain.query.TeamQuery;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author yzh
 * @date 2021-4-26
 */
public interface TeamDao {

	/**
	 * 保存
	 *
	 * @param teamPO
	 */
	int saveTeam(TeamPO teamPO);

	/**
	 * 更新
	 *
	 * @param teamPO
	 */
	int updateTeam(TeamPO teamPO);

	/**
	 * 删除
	 *
	 * @param teamId
	 */
	int deleteTeam(Long teamId);

	/**
	 * 查找一个
	 *
	 * @param teamId
	 * @return
	 */
	TeamPO getTeam(Long teamId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<TeamPO> listTeamById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<TeamPO> listTeam(TeamQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countTeam(TeamQuery query);
}
